<# # It is recommended to test the script on a local machine for its purpose and effects. # ManageEngine Endpoint Central will not be responsible for any # damage/loss to the data/setup based on the behavior of the script. # Description: Script is designed To check the Task status under the Task Manager # Configuration Type - COMPUTER # Arguments - Taskname should be hardcoded inside the script #> # Taskname should be hardcode here $processName = "TaskName" # Check if the process is running $process = Get-Process -Name $processName -ErrorAction SilentlyContinue if ($process) { Write-Host "$processName is running." } else { Write-Host "$processName is not running." }